package com.bus.boot.manager.assist;

import java.util.List;

import com.bus.boot.entity.assist.BusGuestbook;
import com.bus.boot.entity.assist.BusGuestbookExt;
import com.bus.common.page.Pagination;
import com.bus.core.entity.BusUser;

public interface BusGuestbookMng {
	public Pagination getPage(Integer siteId, Integer ctgId, Integer ctgIds[],
			Integer userId, Boolean recommend,Short checked, 
			boolean desc, boolean cacheable, int pageNo,int pageSize);

	public List<BusGuestbook> getList(Integer siteId, Integer ctgId,
			Integer userId,Boolean recommend, Short checked, boolean desc,
			boolean cacheable, int first, int max);

	public BusGuestbook findById(Integer id);

	public BusGuestbook save(BusGuestbook bean, BusGuestbookExt ext,
			Integer ctgId, String ip);

	public BusGuestbook save(BusUser member, Integer siteId, Integer ctgId,
			String ip, String title, String content, String email,
			String phone, String qq);

	public BusGuestbook update(BusGuestbook bean, BusGuestbookExt ext,
			Integer ctgId);

	public BusGuestbook deleteById(Integer id);

	public BusGuestbook[] deleteByIds(Integer[] ids);

	public BusGuestbook[] checkByIds(Integer[] ids,BusUser checkUser,Short checkStatus);
}